package com.yourwork.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;

import com.yourwork.model.ServiceProject;

public interface ServiceProjectDao {
	//id查询对应的记录
	public ServiceProject queryServiceItem(int id);
	//查询所有记录(根据boolean)
	public List<ServiceProject> queryServiceItemAll(boolean status);
	//添加服务项目
	public void insertServiceItem(ServiceProject serviceItem);
	//删除服务项目
	public void updateStatus(ServiceProject serviceItem);
	//查询所有记录
	public List<ServiceProject> queryServiceItemA();
	//查询总的服务条数
	public int countServiceItem(boolean status);
	//分页查询
	public List<ServiceProject> queryServiceItemAllF(boolean status, Pageable pageable);

}
